package abstarctFactory;

public class Client {
    public static void main(String[] args) {
        System.out.println("================小米系列===================");
        XiaomiFactory xiaomiFactory = new XiaomiFactory();
        Phone phone1 = xiaomiFactory.productPhone();
        phone1.open();
        phone1.sendMessage();

        Route route1 = xiaomiFactory.productRoute();
        route1.open();
        route1.set();
        System.out.println("================华为系列===================");
        HuaweiFactory huaweiFactory = new HuaweiFactory();
        Phone phone2 = huaweiFactory.productPhone();
        phone2.open();
        phone2.sendMessage();

        Route route2 = huaweiFactory.productRoute();
        route2.open();
        route2.set();

    }
}
